package com.mall.commons.exceotion;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException {

    private String message;

    private ErrorResult errorResult;
    public BusinessException(String msg){
        super(msg);
        this.message = msg;
    }

    public BusinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }


}